﻿using DFGK_WMS.Model;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.IService
{
    public interface ISupplierService
    {
        bool AddSupplier(Supplier dictItem, out string message);
        /// <summary>
        /// 查询供应商
        /// </summary>
        /// <param name="keyword"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<Supplier> GetAllSupplier(string? name, int pageIndex, int pageSize, out int totalCount);
        /// <summary>
        /// 修改供应商
        /// </summary>
        /// <param name="supplier"></param>
        /// <returns></returns>
        bool UpdSupplier(Supplier supplier, out string message);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelSupplier(long id);
        Supplier? GetSupplierById(long id);

        /// <summary>
        /// 批量添加
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        bool AddSuppliers(List<Supplier> suppliers);

        List<SuppliersDown> GetAllSupplier();

        List<Supplier> GetSupplierMsg(string? purMsg,string? suppliers,int pageIndex,int pageSize, out int totalCount);
    }
}
